// import http from "@/http";

import dayjs from "dayjs";
import http from "@/http";

export function GetDailyTraffic(t){
    let e = dayjs(t).add(6,'day').format("YYYY-MM-DD");
    let params = {
        startTime:t,
        endTime:e,
    }
    return http.get('/log/search/dailyVisits',{params:params});
}

export function GetTop10(s,e){
    let params={
        startTime:s,
        endTime:e,
    }
    return http.get('/log/search/ipTop10',{params:params});
}

export function GetTimeZone(){
    return http.get("/log/search/timeZone");
}